import VueRouter from "vue-router";

import Login from '@/view/login';
import Home from "@/view/home";

let router = new VueRouter({
    routes:[
        {
            path:"/",
            redirect:'/Login' //重定向到登录页面
        },
        {
            path: '/Login',
            component: Login,
        },
        {
            path: '/Home',
            component: Home,
        },

    ]
})

export default router;